{% extends 'base.html' %}
{% from 'bootstrap4/form.html' import render_form %}

{% block title %}欢迎来到博客{% endblock %}


{% block page_content %}

     <div class="page-header">
        <h1>你好, 
            {% if current_user.is_authenticated %}
                {{ current_user.username }}
            {% else %}
                陌生人
            {% endif %}!
        </h1>
     </div>
     {{ render_form(nameform) }}
    <p>本地的日期和时间是 {{ moment(current_time).format('LLLL') }}</p>
    <p>{{ moment(current_time).fromNow(refresh=True) }}</p>
{% endblock %}



